package com.ymx.darling.type;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class ObjectHandler implements TypeHandler<Object> {
    @Override
    public Object getResult(ResultSet resultSet, int columIndex) throws SQLException {
        return resultSet.getObject(columIndex);
    }

    @Override
    public void setParameter(PreparedStatement statement, Object value, int index) throws SQLException {
        statement.setObject(index, value);
    }
}
